package cn.sciento.transfer.infra.datasource.ddl.sqlserver.dto;

import java.util.Map;

public class TableEntity {
  public static final String TABLE_NAME = "table_name";
  
  public static final String TABLE_COMMENT = "table_comment";
  
  private String tableName;
  
  private String tableComment;
  
  public static TableEntity build(Map<String, Object> tableMap) {
    TableEntity tableEntry = new TableEntity();
    if (null == tableMap)
      return tableEntry; 
    tableEntry.setTableName((String)tableMap.get("table_name"));
    tableEntry.setTableComment((String)tableMap.get("table_comment"));
    return tableEntry;
  }
  
  public String getTableName() {
    return this.tableName;
  }
  
  public void setTableName(String tableName) {
    this.tableName = tableName;
  }
  
  public String getTableComment() {
    return this.tableComment;
  }
  
  public void setTableComment(String tableComment) {
    this.tableComment = tableComment;
  }
}
